<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>编辑分类</title>
    <style>
        body {
            margin: 0;
            padding: 40px 20px;
            background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #e0f7fa;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
        }

        h1 {
            font-size: 2.5rem;
            color: #00f7ff;
            text-shadow: 0 0 10px #00f7ff;
            margin-bottom: 30px;
        }

        nav {
            margin-bottom: 30px;
        }

        nav a {
            color: #00e6e6;
            font-weight: bold;
            margin: 0 10px;
            text-decoration: none;
            font-size: 1.1rem;
            transition: color 0.3s;
        }

        nav a:hover {
            color: #ffffff;
            text-shadow: 0 0 8px #00f7ff;
        }

        form {
            background-color: rgba(20, 30, 40, 0.95);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
            width: 100%;
            max-width: 400px;
        }

        p {
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
        }

        label {
            margin-bottom: 8px;
            font-weight: bold;
        }

        input[type="text"] {
            padding: 10px;
            border: 2px solid #00f7ff;
            border-radius: 8px;
            background-color: #001f29;
            color: #ffffff;
            font-size: 1rem;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        input[type="text"]:focus {
            border-color: #00e6ff;
            box-shadow: 0 0 8px #00f7ff;
            outline: none;
        }

        input[type="submit"] {
            background: linear-gradient(90deg, #00f7ff, #01c8ff);
            color: #001f29;
            padding: 10px 20px;
            font-weight: bold;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.3s;
        }

        input[type="submit"]:hover {
            transform: scale(1.05);
            box-shadow: 0 0 12px #00f7ff;
        }
    </style>
</head>
<body>
    <h1>编辑分类</h1>
    <nav>
        <a href="/categories">分类管理</a> |
        <a href="/">首页</a>
    </nav>
    <form action="/categories/edit/{{.Category.ID}}" method="post">
        <p>
            <label for="name">分类名称:</label>
            <input type="text" name="name" id="name" value="{{.Category.Name}}" required>
        </p>
        <p><input type="submit" value="保存"></p>
    </form>
</body>
</html>
